All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sun.servlet.ServletConnection

public interface ServletConnection
This interface is used to provide information to a servlet about the connection it is being invoked on.


Method Index

 o getInputStream()
Returns an input stream for reading from the connection.
 o getOutputStream()
Returns an output stream for writing to the connection.
 o getRealPath(String)
Returns the specified path translated to a real path.
 o getRemoteAddr()
Returns the IP address of the agent that sent the request.
 o getRemoteHost()
Returns the fully qualified host name of the agent that sent the request.
 o getServerName()
Returns the host name of the server that received the request.
 o getServerPort()
Returns the port number on which this request was received.

Methods

 o getServerName
 public abstract String getServerName()
Returns the host name of the server that received the request.

 o getServerPort
 public abstract int getServerPort()
Returns the port number on which this request was received.

 o getRemoteHost
 public abstract String getRemoteHost()
Returns the fully qualified host name of the agent that sent the request.

 o getRemoteAddr
 public abstract String getRemoteAddr()
Returns the IP address of the agent that sent the request.

 o getRealPath
 public abstract String getRealPath(String path)
Returns the specified path translated to a real path.

 o getInputStream
 public abstract InputStream getInputStream() throws IOException
Returns an input stream for reading from the connection.

 o getOutputStream
 public abstract OutputStream getOutputStream() throws IOException
Returns an output stream for writing to the connection.


All Packages  Class Hierarchy  This Package  Previous  Next  Index